<?php
declare(strict_types=1);

namespace App\Enums;


class WalletEnum
{

    // 字段类型定义(钱包服务返回字段)
    const FIELD_COIN = "balance"; // M豆
    const FIELD_INCOME = "income"; // 积分
    const SYNTHESIS_DAY = 365; //魔法阵合成礼物过期天数

    // 类型
    const BALANCE_TYPE_COIN = 1; // 余额变动类型: M豆
    const BALANCE_TYPE_INCOME = 2; // 余额变动类型: 积分
    const BALANCE_TYPE_GIFT = 3; // 余额变动类型: 背包礼物

    // 送礼类型
    const GIFT_TYPE_ROOM_COIN = 1; // 房间M豆送
    const GIFT_TYPE_ROOM_BACKPACK = 2; // 房间背包

    const STATUS_ROLLBACK = -3;
    const STATUS_TIMEOUT = -2;
    const STATUS_FAIL = -1;
    const STATUS_WAIT = 0;
    const STATUS_SUCCESS = 1;

    const ROLLBACK_TYPE_WALLET              = "update_balance";      // 更新M豆/积分
    const ROLLBACK_TYPE_BATCH_WALLET        = "batch_update_income"; // 批量更新M豆/积分
    const ROLLBACK_TYPE_EXCHANGE            = "exchange";            // M豆兑换积分
    const ROLLBACK_TYPE_BACKPACK_GIFT       = "add_gift";            // 背包礼物变动
    const ROLLBACK_TYPE_BATCH_BACKPACK_GIFT = "batch_update_gift";   // 背包礼物批量变动
    const ROLLBACK_TYPE_GIVE_GIFT           = "send_gift";           // 赠送礼物
    const ROLLBACK_TYPE_BATCH_GIVE_GIFT     = "batch_send_gift";     // 批量赠送礼物


    const COIN_BUS_TYPE_GIVE_ROOM_GIFT       = 10000;      // 赠送房间M豆礼物
    const COIN_BUS_TYPE_RECHARGE             = 10001;      // 充值
    const COIN_BUS_TYPE_ADMIN_RECHARGE       = 10002;      // 管理员充值
    const REDUCE_CONNECTION_RECORD           = 10003;      // 开启心动连线 扣费
    const INDUCTION_CONNECTION_RECORD        = 10004;      //心动连线收礼收益
    const INDUCTION_CONNECTION_RECORD_GIFT   = 10005;      //心动连线送礼
    const COIN_BUS_TYPE_LOTTERY_CRYSTAL_SWAP = 10006;      // 水晶抽奖兑换
    const COIN_BUS_TYPE_BLIND_BOX            = 10007;      // 赠送盲盒扣M豆
    const COIN_BUS_TYPE_ACTIVITY_REWARD      = 10008;      // 拉新活动,被邀请人消费,赠送邀请人M豆
    const COIN_BUS_TYPE_BLIND_INCOME         = 10009;      // 获得盲盒礼物积分
    const COIN_BUS_TYPE_ACCOMPANY_INCOME     = 10010;      // 开启匹配 扣费
    const COIN_BUS_TYPE_ACCOMPANY_REFUND_AGREE = 10011;      // 主播同意退还用户陪玩款项
    const COIN_BUS_TYPE_ACCOMPANY_ORDER_CANCEL = 10012;      // 用户取消陪玩单/达人拒绝陪玩
    const COIN_BUS_TYPE_LOTTERY3_BALANCE_SWAP = 10013; // lottery3 兑换余额
    const COIN_BUS_TYPE_ACCOMPANY_PLATFORM_AGREE = 10014; // 陪玩-平台审核同意退款
    const COIN_BUS_TYPE_GAME_BUT_START = 10015;      // 用户取消陪玩单/达人拒绝陪玩
    const COIN_BUS_TYPE_SYSTEM_BUT_START = 10016;      // 盲盒补偿M豆
    const COIN_BUS_TYPE_RED_ENVELOPE_SEND = 10017; //发送红包
    const COIN_BUS_TYPE_RED_ENVELOPE_GRAB = 10018; //结算红包
    const COIN_BUS_TYPE_RED_ENVELOPE_RETURN = 10019; //退还红包
    const COIN_BUS_TYPE_COUPLE_GIVE_SEND = 10020; //赠送情侣礼物
    const COIN_BUS_TYPE_COUPLE_GIVE_RETURN = 10021; //退还情侣礼物
    const COIN_BUS_TYPE_PET_SKILL_FREE_GIVE_GIFT = 10023; // 宠物神佑免费礼物

    const COIN_BUS_TYPE_PET_EGG_BUY = 10023; // 宠物蛋购买
    const COIN_BUS_TYPE_PET_EGG_HATCH = 10024; // 宠物蛋孵化
    const COIN_BUS_TYPE_PET_EGG_EVOLVE = 10025; // 宠物蛋进化
    const COIN_BUS_TYPE_PET_BALANCE = 10026; // 兑换宠物洗炼石
    const COIN_BUS_TYPE_PET_NAME = 10027; // 修改宠物名字
    const COIN_BUS_TYPE_LOTTERY_LADDER_BUY_EXP = 10028; // 购买经验

    const COIN_BUS_TYPE_INTIMATE_FRIEND_GIVE_SEND = 10029; //赠送摯友礼物
    const COIN_BUS_TYPE_INTIMATE_FRIEND_GIVE_RETURN = 10030; //退还摯友礼物
    const COIN_BUS_TYPE_ANCHOR_UN_CHAT_RETURN = 10031;//主播订单未回复退回M豆

    const INCOME_BUS_TYPE_ROOM_GET_GIFT      = 20000; // 房间收礼
    const INCOME_BUS_TYPE_GIFT_GET_PRIVAT    = 20001; // 私聊收礼
    const INCOME_BUS_TYPE_ADMIN_RECHARGE     = 20002; // 管理员充值
    const INCOME_BUS_TYPE_WITHDRAW           = 20003; // 提现
    const INCOME_BUS_TYPE_CONVERT_COIN       = 20004; // 收益转换金币
    const INCOME_BUS_TYPE_GUILD_WITHDRAW     = 20005; // 公会提现
    const INCOME_BUS_TYPE_ROOM_RECORD_GIFT   = 20006; //心动连线收礼收益
    const INCOME_BUS_TYPE_ROOM_RECORD_INCOME = 20007; //心动连线续费收益
    const INCOME_BUS_TYPE_ROOM_ACCOMPANY_INCOME = 20008; //陪玩收益
    const INCOME_BUS_TYPE_SYSTEM_INCOME = 20009;//盲盒系统扣除收益
    const INCOME_BUS_TYPE_AIRDROP_BOX_INCOME = 20010; //抢空投箱获得收益


    const GIFT_BUS_TYPE_LOTTERY_PET_REWARD     = 30000; // 萌宠抽奖礼物
    const GIFT_BUS_TYPE_GIVE_ROOM_BACKPACK     = 30001; // 赠送房间背包礼物
    const GIFT_BUS_TYPE_ADMIN_RECHARGE         = 30002; // 管理员充值礼物
    const GIFT_BUS_TYPE_LOTTERY_CRYSTAL_REWARD = 30003; // 水晶抽奖礼物
    const GIFT_BUS_TYPE_FIRST_REWARD = 30004; //首冲赠送礼物
    const GIFT_BUS_TYPE_VALENTINE_REWARD       = 30005; // 情人节活动礼物
    const GIFT_BUS_TYPE_New_LOTTERY_CRYSTAL_REWARD   = 30006;//新水晶抽奖礼物
    const GIFT_BUS_TYPE_LOTTERY3_REWARD = 30007; // lottery3抽奖礼物
    const GIFT_BUS_TYPE_LOTTERY3_INTEGRAL = 30008; // 能量商城兑换礼物
    const GIFT_BUS_TYPE_AIRDROP_BOX = 30011; // 空投箱赠送礼物
    const GIFT_BUS_TYPE_AIRDROP_BOX_RETURN = 30012; //空投箱到期返回礼物

    const GIFT_BUS_TYPE_STAR_REWARD = 30010; // 占星阁兑奖礼物

    const GIFT_BUS_TYPE_ACTIVITY_LABOR_DAY2023 = 30014;
    const GIFT_BUS_TYPE_USER_SYNTHESIS = 30015;  // 旧魔法阵合成扣除礼物
    const GIFT_BUS_TYPE_SYNTHESIS = 30016;  //魔法阵合成礼物
    const GIFT_BUS_TYPE_FREE_GIFT = 30017;  //在房间三分种获得免费礼物
    const GIFT_BUS_TYPE_USER_SYNTHESIS_NEW = 30025;  // 新魔法阵合成扣除礼物

    const GIFT_BUS_TYPE_ACTIVITY_PET_UPGRADE = 30030; //宠物品质升级
    const GIFT_BUS_TYPE_LOTTERY_LADDER  = 30031; // 天梯抽奖奖品
    const MAGIC_BUS_TYPE_COMPOUND = 30033;  //魔法阵合成礼物-新
    const GIFT_BUS_TYPE_ACTIVITY_YEAR_MID = 30034;  //年中回馈活动
    const GIFT_BUS_TYPE_PET_WORK = 30035; // 宠物打工奖励

}